/** When your routing table is too long, you can split it into small modules **/

import Layout from '@/layout'
//
const customerRouter = {
  path: '/customer',
  component: Layout,
  redirect: 'noRedirect',
  hidden:false,
  name: '客户',
  meta: {
    title: '客户',
    icon: 'people'
  },

  children: [
    {
      path: 'workbrench',
      component: () => import('@/views/customer/workbrench/workbrench'),
      name: '总览',
      meta: { title: '总览' }
    },
        
    {
      path: 'channel',
      component: () => import('@/views/customer/channel/channel'),
      name: '渠道',
      meta: { title: '渠道' }
    },
    {
      path: 'channel-add',
      component: () => import('@/views/customer/channel/channel-add'),
      name: '新渠道',
      hidden: true,
      meta: { title: '新渠道' }
    },
        {
          path: 'grade',
          component: () => import('@/views/customer/grade/grade'),
          name: '等级',
          meta: { title: '等级' }
        },
        {
          path: 'grade-add',
          component: () => import('@/views/customer/grade/grade-add'),
          name: '新等级',
          hidden: true,
          meta: { title: '新等级' }
        },
        {
          path: 'register',
          component: () => import('@/views/customer/clientete/clientete'),
          name: '客户',
          meta: { title: '客户' }
        },
        {
          path: 'clientete',
          component: () => import('@/views/customer/clientete/clientete'),
          name: '客户',
          meta: { title: '客户' }
        },
        {
          path: 'clientete-add',
          component: () => import('@/views/customer/clientete/clientete-add'),
          name: '新客户',
          hidden: true,
          meta: { title: '新客户' }
        },
        {
          path: 'clientete-detail',
          component: () => import('@/views/customer/clientete/clientete-detail'),
          name: '客户档案',
          hidden: true,
          meta: { title: '客户档案' }
        },
        {
          path: 'cannel',
          component: () => import('@/views/customer/clientete/clientete'),
          name: '注销',
          meta: { title: '注销' }
        },
        {
          path: 'cannel-detail',
          component: () => import('@/views/customer/clientete/clientete-detail'),
          name: '注销档案',
          hidden: true,
          meta: { title: '注销档案' }
        }
  ]
}

export default customerRouter
